package com.webledger.action;

import com.opensymphony.xwork2.ActionSupport;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

public class DemoAction {
	int name;

	public int getName() {
		return name;
	}

	public void setName(int name) {
		this.name = name;
	}

	public String execute() {
		HttpServletRequest request = ServletActionContext.getRequest();
		HttpSession session = request.getSession();
		int uid = ((Integer) session.getAttribute("userid"));
		name = uid;
		return "success";
	}
}
